#include "../source/server.hpp"

int main()
{
    Socket cli_sock;
    bool ret = cli_sock.CreateClientConn(8888, "127.0.0.1");

    while (1)
    {
        std::string str;

        std::getline(std::cin, str);
        cli_sock.Send(str.c_str(), str.size());

        char buf[1024] = {0};
        cli_sock.Recv(buf, 1023);
        DLOG("%s", buf);
    }

    cli_sock.Close();
    return 0;
}